package com.recommend.dao;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import com.member.domain.MemberCommand;

@Component
public class RecommendDaoImpl extends SqlSessionDaoSupport implements RecommendDao {

	@Override
	public List<MemberCommand> memberAllList(Map<String, Object> map) {
		List<MemberCommand> list = getSqlSession().selectList("Member.memberAllList",map);
		return list;
	}

	@Override
	public int getMemberAllCount(Map<String, Object> map) {
		return getSqlSession().selectOne("Member.selectAllCount",map);
		}

	@Override
	public List<MemberCommand> memberManList(Map<String, Object> map) {
		List<MemberCommand> list = getSqlSession().selectList("Member.memberManList",map);
		return list;
	}

	@Override
	public int getMemberManCount(Map<String, Object> map) {
		return getSqlSession().selectOne("Member.selectManCount",map);
		}

	@Override
	public List<MemberCommand> memberWomanList(Map<String, Object> map) {
		List<MemberCommand> list = getSqlSession().selectList("Member.memberWomanList",map);
		return list;
	}

	@Override
	public int getMemberWomanCount(Map<String, Object> map) {
		return getSqlSession().selectOne("Member.selectWomanCount",map);
		}

}
